package edu.udo.sopra10.chaturaji.util;

/**
 * Player related utility functions.
 * 
 * @author Patrick Westerhoff
 */
public class PlayerUtil
{
	private static final String[] RANDOM_NAMES = new String[] { "Huberta", "Klara", "Doris", "Jutta",
			"Michaela", "Marta", "Brunhilde", "Gertrude", "Gisela", "Dorste", "Dörte", "Gretel",
			"Donnertrud", "Hansine", "Wilhelmine" };
	
	/**
	 * Generates a random name from a preset list.
	 * 
	 * @return a random player name.
	 */
	public static String getRandomName ()
	{
		return RANDOM_NAMES[ (int) Math.floor( Math.random() * RANDOM_NAMES.length ) ];
	}

}
